<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>异步网络请求</title>
</head>
<body>
<div id="change" class="change">

</div>

<script !src="">
    fetch(
        "https://httpbin.org/get?name=abc&gender=man",
        {
            method: "GET",
        },
    ).then(response => {
        return response.json()
    }).then(function (data) {
        console.log(data.args);
    });

  /*  fetch(
        "https://httpbin.org/get",
        {
            method: "GET",
            param:{
                name:"abc",
                gender:"man"
            }
        },
    ).then(response => {
        return response.json()
    }).then(function (data) {
        console.log(data.args);
    });*/
</script>
</body>
</html>